package com.aboo.pub.constant;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import org.apache.log4j.Logger;

public class ConfigProperties {
	
	private static final Logger logger = Logger.getLogger(ConfigProperties.class);
	private static Properties prop = new Properties();
	
	static {
		try {
			prop.load(ConfigProperties.class.getResourceAsStream("/config/config.properties"));
		} catch (FileNotFoundException e) {
			logger.error("config/config.properties文件不存在！", e);
		} catch (IOException e) {
			logger.error("config/config.properties文件加载失败！", e);
		}
	}

	public static String getLogoUploadPath() {
		return prop.getProperty("logoUploadPath", "/upload");
	}

}
